﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
	<c:set var="basePath" value="<%=request.getContextPath()%>"/>
	<!-- jsp文件头和头部 -->
	<jsp:include page="../common/common_head.jsp"/>
	<script type="text/javascript" src="${basePath}/js/base/log.js"></script>
	<script type="text/javascript" src="${basePath}/js/base/dialog.js"></script>
	<script type="text/javascript" src="${basePath}/js/sync/sync_list.js"></script>
	<script type="text/javascript" src="${basePath}/js/sync/sync_edit.js"></script>
	
	</head> 
<body>


<div class="container-fluid" style="padding-top: 10px;">
    <div class="panel panel-success">
        <%--<div class="panel panel-default">--%>
        <div class="panel-heading">
            <h3 class="panel-title">操作日志</h3>            
        </div>

		  <form action="${basePath}/sync/findSyncLog.do" method="post" >
				<input  type="hidden" name="objectId" id= "objectId">
       			<input  type="hidden" name="objectType" id= "objectType">
       
			</form>
        <table class="table table-bordered table-hover">
            <thead>
            <tr class="bg-success">
						
						<th>创建时间</th>
						<th>操作人</th>
						<th>操作内容</th>
					
						
			</tr>
            </thead>
            <tbody>
           	<!-- 开始循环 -->	
				<c:choose>
					<c:when test="${not empty comLogList}">
						<c:forEach items="${comLogList}" var="log" varStatus="vs">
									
							<tr>
								<td><fmt:formatDate value="${log.createTime }" pattern="yyyy/MM/dd  HH:mm:ss" /></td>
								<td><span style="font-weight:bold">${log.operatorName}</span>-<span>${log.logName}</span></td>
								<td>${log.content}</td>
								
						</c:forEach>
						
					</c:when>
					<c:otherwise>
						<tr class="main_info">
							<td colspan="10" class="center">没有相关数据</td>
						</tr>
					</c:otherwise>
				</c:choose>
				
            </tbody>
        </table>

        <div class="panel-footer">
        	
        	<div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div>
             <div class="pagination" style="margin: 0px">
                
            </div>

            <div class="pagination pull-right" style="margin: 0px">
                
            </div>
            <br/>
            <br/>
        </div>
    </div>

      
</div>
</body>
</html>
<script type="text/javascript">
$("#objectId").val('${objectId}');
$("#objectType").val('${objectType}');
</script>


